package com.attendance.mapper;

import com.attendance.pojo.UserDetails;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * 用户详细信息映射器
 *
 * @author 今朝
 * @date 2021/03/14
 */
@Mapper
public interface UserDetailsMapper extends BaseMapper<UserDetails> {

    /**
     * 通过id找到角色的名字
     *
     * @param id id
     * @return {@link String}
     */
    String findRoleNameById(Long id);

    /**
     * 找到derpar名称由id
     *
     * @param id id
     * @return {@link String}
     */
    String findDerparNameById(Long id);
}